<!--主任工程师界面  code=0 -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title style="font-size: large">煤矿信息系统（管理员）</title>
    <link rel="stylesheet" href="../lib/layui-v2.6.3/css/layui.css">
</head>
<body style="overflow-x:hidden">
<audio  autoplay="autoplay" id="auto" src=""></audio>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">煤矿信息系统（管理员）</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="index-manager.html" class="layui-icon layui-icon-slider">首页</a></li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:">
                    <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img" >Dolphin
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="page/password.html" class="layui-icon layui-icon-key">修改密码</a></dd>
                    <dd><a href="/login" class="layui-icon layui-icon-logout">退出登录</a></dd>
                </dl>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <div>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a href="javascript:" class="layui-icon layui-icon-user">   权限管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="page/user-manage.html" target="container">管理所有用户</a></dd>
                            <dd><a href="page/findUser.html" target="container">查询指定用户</a></dd>
                            <dd><a href="page/countByUser.html" target="container">权限数量统计</a></dd>
                        </dl>
                    </li>
                </div>
                <div>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a href="javascript:" class="layui-icon layui-icon-group">  矿工管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="page/miner-manage.html" target="container">管理所有矿工</a></dd>
                            <dd><a href="page/findMiner.html" target="container">查询指定矿工</a></dd>
                            <dd><a href="page/countByMiner.html" target="container">各工种人数</a></dd>
                        </dl>
                    </li>
                </div>
                <div>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a href="javascript:" class="layui-icon layui-icon-console">   气体管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="page/gas-manage.html" target="container">管理所有气体</a></dd>
                            <dd><a href="page/findGas.html" target="container">查询指定气体</a></dd>
                            <dd><a href="page/countRecords.html" target="container">有害气体实时监控</a></dd>
                        </dl>
                    </li>
                </div>
                <div>
                    <li class="layui-nav-item">
                        <a href="javascript:" class="layui-icon layui-icon-util">   设备管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="page/manageDevices.html" target="container">管理所有设备</a></dd>
                            <dd><a href="page/devices-manage.html" target="container">设备信息查询</a></dd>
                            <dd><a href="page/countByDevices.html" target="container">设备状态统计</a></dd>
                        </dl>
                    </li>
                </div>
                <li class="layui-nav-item"><a href="page/log.html" class="layui-icon layui-icon-chart" target="container">  查看工作日志</a>
                <li class="layui-nav-item"><a href="page/countGas.html" class="layui-icon layui-icon-chart" target="container" id="dangerous">  瓦斯浓度监测</a>
                <li class="layui-nav-item"><a href="page/password.html" class="layui-icon layui-icon-key" target="container">  修改密码</a>
                <li class="layui-nav-item"><a href="/login" class="layui-icon layui-icon-logout">  退出登录</a>
                <li class="layui-nav-item"><a class="layui-btn layui-btn-danger layui-btn-s" onclick="warning('http://localhost:8080/files/1ce3e39343194e3092609a6ed0d56274.mp3');">紧急报警</a>
                <li class="layui-nav-item"><a class="layui-btn layui-btn-s" onclick="warningDown()" >  停止警报</a>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域-->
            <iframe src="page/welcome.html" name="container" width="100%" height="100%"></iframe>
    </div>


</div>
<script src="../lib/jquery-3.4.1/jquery-3.4.1.min.js"></script>
<script src="../lib/layui-v2.6.3/layui.js"></script>
<script>
    function warning(src) {
        var auto = $("#auto");
        auto.attr("src",src);
    }

    function warningDown(){
        var audio = document.getElementById("auto");
        audio.pause();
    }

    //JS
    layui.use(['element', 'layer', 'util'], function(){
        var element = layui.element
            ,layer = layui.layer
            ,util = layui.util
            ,$ = layui.$;

        //头部事件
        util.event('lay-header-event', {

            //左侧菜单事件
            menuLeft: function(othis){
                layer.msg('展开左侧菜单的操作', {icon: 0});
            },
            menuRight: function(){
                layer.open({
                    type: 1
                    ,content: '<div style="padding: 15px;">处理右侧面板的操作</div>'
                    ,area: ['260px', '100%']
                    ,offset: 'rt' //右上角
                    ,anim: 5
                    ,shadeClose: true
                });
            }
        });

    });
</script>
</body>
</html>